<?php

function showStatus($demands, $status){
    return $demands[$status];
}

function formatSelectArray($array){
    $html = '';
    foreach ($array as $key => $val) {
        $option = "<option value='{$key}'>{$val}</option>";
        $html .= $option;
    }
    return $html;
}